package TestLayer;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import ModelLayer.*;
import CTRLayer.CustomerCTR;
import DBLayer.*;

public class CustomerCTRTest 
{

	private CustomerCTR customerCTR;
	@Before
	public void setUp() throws Exception 
	{
		customerCTR = new CustomerCTR();
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
//	public void testGetCustomer() 
//	{
//		Customer customer = customerCTR.getCustomer("12345678", true);
//		System.out.println("Printing order numbers");
//		for(int i = 0; i < customer.getOrders().size(); i++)
//		{
//			System.out.println(customer.getOrders().get(i).getOrderNO());
//		}
//	}
//	
	public void testInsertCustomer()
	{
		customerCTR.insertCustomer("Rasmus Andersen Borup", "111111-1111", "12345678", "Rasmus@eksempel.dk", "Rasmusvej 1", "9000");
		customerCTR.insertCustomer("Kasper Jensen", "221222-2223", "09876543", "Kasper@eksempel.dk", "Kaspervej 1", "9000");
		customerCTR.insertCustomer("Katrine Nielsen", "030303-3333", "11335577", "Katrine@eksempel.dk", "Katrinevej 1", "9000");		
	}
}
